import request from "../utils/request";

const api_name = '/teacher'

export default {
    // 获取首页中的讲师和课程数据
    getPagedList(page, limit) {
        return request({
            url: `${api_name}/search/${page}/${limit}`,
            method: 'post'
        })
    },
    // 根据id获取讲师详情和主讲课程
    getTeacherDetail(id) {
        return request({
            url: `${api_name}/detailinfo/${id}`,
            method: 'get'
        })
    }
}